<?php

namespace Xin\Hyperf\Fortify;

use Hyperf\Context\RequestContext;
use function Hyperf\Config\config;

class Environment
{

    /**
     * @return bool
     */
    public static function isWeb(): bool
    {
        return RequestContext::has();
    }

    /**
     * @return mixed
     */
    public static function name()
    {
        return config('app_env');
    }
}
